var uuid = require('uuid');
var client = require('../../app/jms/jms.client');

client.connect(function(){
    var merchant = {
        _id:'116643a4-cfa2-410c-bc47-5c420c8f54a4',
        account:'jim111',
        name:'好吃点13344',
        address:'软件园路31',
        imgHead:'/gg1/gg.jpg',
        imgCard:'/hh1/ff.jpg',
    }
    var pro = {
        result:true,
        data:merchant
    }
    client.publish(client.destination,JSON.stringify(pro));
    // setInterval(function(){
    //     client.publish(queue,JSON.stringify(pro));
    // },2000);
    client.disconnect();
});

